/*var b1 = document.getElementById('button1')
var b2 = document.getElementById('button2')
var b3 = document.getElementById('button3')
*/

function bufun1() {
    // window.alert("hello world")
    var year = prompt("请输入年份");
    var par = document.getElementById("element");
    if (confirm("你确定吗?")) par.innerHTML = year;
    else par.innerHTML = '你不确定'
}
function temp() {
    var par = document.getElementById("element")
    par.innerHTML = "stick";
}

function plus() {
    var one = document.getElementById("plus1")
    var two = document.getElementById("plus2")
    var result = document.getElementById("result")
    var answer = parseInt(one.value) - parseInt(two.value);
    console.log(one.value)
    result.innerHTML = answer;
}
function stop() {
    window.alert("stop!")
}